package nio;

import java.nio.CharBuffer;
import java.nio.IntBuffer;
import java.util.Arrays;

/**
 * @Author Klys
 * @Date 2023/6/3 16:47
 * @Description
 * @Version 1.0
 */
public class CharDemo01 {

    public static void main(String[] args) {
        CharBuffer buffer = CharBuffer.allocate(10);
        buffer.put("lbwnb");  //除了可以直接丢char之外，字符串也可以一次性丢进入
        System.out.println(Arrays.toString(buffer.array()));

    }
}
